{% extends 'layout.html' %}

{% block content %}
<div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Add Department</h3>
            </div>
            <div class="panel-body">

                <form action="" method="post" novalidate>
                    {% csrf_token %}
                    <div class="form-group">
                        <div class="form-group">
                            <label>姓名</label>
                            <input type="text" name='name' class="form-control" placeholder="name">

                        </div>
                        <div class="form-group">
                            <label>密码</label>
                            <input type="password" name='password' class="form-control" placeholder="密码">

                        </div>
                        <div class="form-group">
                            <label>年龄</label>
                            <input type="text" name='age' class="form-control" placeholder="年龄">

                        </div>
                        <div class="form-group">
                            <label>工资</label>
                            <input type="text" name='account' class="form-control" placeholder="工资">

                        </div>
                        <div class="form-group">
                            <label>入职时间</label>
                            <input type="text" name='create_time' class="form-control" placeholder="入职时间">

                        </div>
                        <div class="form-group">
                            <label>性别</label>
                            <select class="form-control" name="gender">
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                        </div>
                        <div class="form-group">

                            <label>部门</label>
                            <select class="form-control" name="department">

                                {% for item in depart_list %}

                                <option value="{{item.id}}">{{item.title}}</option>
                                {% endfor %}
                            </select>
                        </div>

                    </div>
                    <button type="submit" class="btn btn-primary">Add</button>
                </form>
                    </div>
            </div>
        </div>

    </div>

{% endblock %}